package cn.iocoder.yudao.module.cms.appversion.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.time.LocalDateTime;

@Tag(name = "版本更新 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppVersionRespVO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10043")
    @ExcelProperty("唯一编号")
    private Long id;

    @Schema(description = "类型：0-UNIAPP、1-安卓APP", example = "0")
    @ExcelProperty("类型")
    private Integer type;

    @Schema(description = "版本代号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20240100")
    @ExcelProperty("版本代号")
    private Integer versionCode;

    @Schema(description = "版本名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "V2024.1.0")
    @ExcelProperty("版本名称")
    private String versionName;

    @Schema(description = "更新内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "修复了一些已知的BUG。")
    @ExcelProperty("更新内容")
    private String content;

    @Schema(description = "下载地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://example.local/uploads/test_20240100.wgt")
    @ExcelProperty("下载地址")
    private String url;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2024-12-11 10:37:00")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
